#include <REGX52.H>
#include "clos.h"
void disp(unsigned char n){
	P0=n;
	P2=P2&0x1f|0x80;
	P2&=0x1f;
}
unsigned int i,j;
void main(){
	clos();
	while(1){
		for(i=0;i<4;i++)
		for(j=0;j<100;j++){
			disp(0x00);
			Delay(i+1);
			disp(0xff);
			Delay(4-1);
		}
	}
}
